package com.neusoft.SPNursingHome.controller;

import com.neusoft.SPNursingHome.po.ClientCheckInDto;
import com.neusoft.SPNursingHome.po.ResponseBean;
import com.neusoft.SPNursingHome.service.CheckInRecordService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/registration")
public class CheckInRecordController {
    @Resource
    private CheckInRecordService checkInRecordService;

    //客户入住登记
    @PostMapping("/check-in")
    public ResponseBean<Void> checkIn(@RequestBody ClientCheckInDto clientCheckInDto) {
        return checkInRecordService.registerClient(clientCheckInDto);
    }

}